#ifndef _SHELL_GOODSBEAN_BEAN_H_
#define _SHELL_GOODSBEAN_BEAN_H_

#include "Beans.h"
#include "Message.h"
using namespace std;
class GoodsBean : public Bean
{
	public:
	GoodsBean();
	~GoodsBean();
	void reset();
	GoodsBean* clone();
	//物品类型1道具。2装备。3银币。4元宝。5声望。6荣誉，7经验，8帮派贡献9令牌
	int8 goodType;
	//物品id
	int32 goodId;
	//数量
	int32 goodNum;
	
	bool read_from(ByteBuf& buf);
	bool write_to(ByteBuf& buf);
};

#endif
